package com.service;

import com.pojo.Likes;
import com.pojo.Result;
import java.util.List;

public interface LikesService {
    Result<Void> likeNote(Integer userId, Integer noteId);
    Result<Void> unlikeNote(Integer userId, Integer noteId);
    Result<Void> unlikeAllByNoteId(Integer noteId);
    Result<Void> unlikeAllByUserId(Integer userId);
    Result<Boolean> isLiked(Integer userId, Integer noteId);
    Result<Integer> getLikeCountByNoteId(Integer noteId);
    Result<Integer> getLikeCountByUserId(Integer userId);
    Result<List<Likes>> getLikesByNoteId(Integer noteId);
    Result<List<Likes>> getLikesByUserId(Integer userId);
}